<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /*嵌套越深，权重越高*/
        p{
            color: brown;
        }
        .parent p{
            color: coral;
        }
        body .parent p{
            color: pink;
        }
    </style>
</head>
<body>
    <div class="parent">
        <p>hello world</p>
    </div>
</body>
</html>